// 查询方式字段映射
export const queryMap = {
    EQ:'=' ,
    NE:'!=' ,
    GT:'>' ,
    GTE:'>=' ,
    LT:'<' ,
    LTE:'<=' ,
    LIKE:'LIKE' ,
    BETWEEN:'BETWEEN' 
}

/**
 * 生成代码文件路径映射
 * @param module_name  模块名称 如 system
 * @param table_name   表名称
 * @returns 
 */
export function genPathMap(module_name,table_name) {
 return {
    vue:
      'vue/views/' +
      module_name +
      '/' +
      table_name +
      '/index.vue',
    api:
      'vue/api/' +
      module_name +
      '/' +
      table_name +
      '.js',
    entity:
      'nestjs/' +
      table_name +
      '/entities/' +
      table_name +
      '.entity.ts',
    dto:
      'nestjs/' +
      table_name +
      '/dto/' +
      table_name +
      '.dto.ts',
    controller:
      'nestjs/' +
      table_name +
      '/' +
      table_name +
      '.controller.ts',
    module:
      'nestjs/' +
      table_name +
      '/' +
      table_name +
      '.module.ts',
    service:
      'nestjs/' +
      table_name +
      '/' +
      table_name +
      '.service.ts',
    sql: 'nestjs/' + table_name + '.sql.ts',
  }
}